Conditions | 1 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import {chat_v1 as chatV1} from '@googleapis/chat'; |
||
26 | |||
27 | protected addSectionWidget(widget: chatV1.Schema$GoogleAppsCardV1Widget) { |
||
28 | this.card.sections!.push({widgets: [widget]}); |
||
29 | } |
||
30 | |||
31 | abstract buildSections(): void; |
||
32 | |||
33 | abstract create(): chatV1.Schema$GoogleAppsCardV1Card; |
||
34 | |||
35 | |||
36 | createCardWithId(): chatV1.Schema$CardWithId { |
||
37 | return { |
||
38 | 'cardId': this.id, |
||
39 | 'card': this.create(), |
||
40 | }; |
||
41 | } |
||
47 |